package com.dangdang.entity;

import java.util.List;

public class User {
    private Integer id;
    private String email;
    private String nickName;
    private String password;
    private Integer state;
    private List<Address> addressList;

    public User() {
    }

    public User(Integer id, String email, String nickName, String password, Integer state, List<Address> addressList) {
        this.id = id;
        this.email = email;
        this.nickName = nickName;
        this.password = password;
        this.state = state;
        this.addressList = addressList;
    }

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getEmail() {
        return email;
    }

    public void setEmail(String email) {
        this.email = email;
    }

    public String getNickName() {
        return nickName;
    }

    public void setNickName(String nickName) {
        this.nickName = nickName;
    }

    public String getPassword() {
        return password;
    }

    public void setPassword(String password) {
        this.password = password;
    }

    public Integer getState() {
        return state;
    }

    public void setState(Integer state) {
        this.state = state;
    }

    public List<Address> getAddressList() {
        return addressList;
    }

    public void setAddressList(List<Address> addressList) {
        this.addressList = addressList;
    }

    @Override
    public String toString() {
        return "User{" +
                "id=" + id +
                ", email='" + email + '\'' +
                ", nickName='" + nickName + '\'' +
                ", password='" + password + '\'' +
                ", state=" + state +
                ", addressList=" + addressList +
                '}';
    }
}
